<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
 
<div class="h_main2">
    <div class="h_data">
        	 <div class="h_newNews">
        	  <div class="h_viewBox"> 
        	  	  <img src="${member.avatar }" width="58" height="58" alt="头像" />
		          <h3>详细资料</h3>
		          <p>
		          <c:if test="${requestScope.member.identifier==sessionScope.member.identifier }">
		          		<a href="family?id=${member.family}">我家的首页</a>&nbsp;&nbsp;
                		|&nbsp;&nbsp;<a href="javascript:void(0);" onclick="setHash('#updateDetail')">详细资料修改</a>
                  </c:if>
                  <c:if test="${requestScope.member.identifier!=sessionScope.member.identifier }">
		          		<a href="family?id=${member.family}">TA家的首页</a>
                  </c:if>
                  </p>
		          <div class="clear"></div>
		       </div>
                <div class="dataList">
                	<table>
                	   <tr>
                        <td><h3>家的信息</h3></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">门牌号：</td>
                        <td><c:out value="${family.doorplate }"/></td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">家的昵称：</td>
                        <td><c:out value="${family.nickname }"/></td>
                      </tr>
                      <c:if test="${family.introduction!=null && family.introduction!='' }">
                      <tr>
                        <td class="dataList_Text">家的简介：</td>
                        <td><c:out value="${family.introduction }"/></td>
                      </tr>
                      </c:if>
                      <c:forEach items="${memberList }" var="m">
                      <c:if test="${m.role!=requestScope.member.role && (m.role=='01' || m.role=='02') }">
                      <tr>
                        <td class="dataList_Text">家庭成员：</td>
                        <td>${m.roleLabel }：${m.username }</td>
                      </tr>
                      </c:if>
                      </c:forEach>
                      <tr id="babyInfo">
                        <td><h3>宝宝信息</h3></td>
                        <td></td>
                      </tr>
                      <c:forEach items="${memberList }" var="baby">
                      <c:set var="sumBaby" value="0" scope="page" />
                      <c:if test="${baby.role!=requestScope.member.role && baby.role=='05' }">
                      <c:set var="sumBaby" value="${sumBaby+1 }" />
                      <tr>
                        <td class="dataList_Text">宝宝姓名：</td>
                        <td>${baby.username }</td>
                      </tr>
                      <c:if test="${baby.birthday!=null && baby.birthday!='' }">
                      <tr>
                        <td class="dataList_Text">宝宝生日：</td>
                        <td>${baby.birthday }</td>
                      </tr>
                      </c:if>
                      <tr>
                        <td class="dataList_Text">宝宝性别：</td>
                        <td>${baby.sexLabel }</td>
                      </tr>
                      </c:if>
                      </c:forEach>
                      <c:if test="${sumBaby==0 }">
                       	<script>$("#babyInfo").remove();</script>
                      </c:if>
                      <tr>
                        <td><h3>个人信息</h3></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">姓名：</td>
                        <td><c:out value="${member.username }"/></td>
                      </tr>
                      <c:if test="${member.roleLabel!=null && member.roleLabel!='' }">
                      <tr>
                        <td class="dataList_Text">角色：</td>
                        <td>${member.roleLabel }</td>
                      </tr>
                      </c:if>
                       <c:if test="${detail.birthday!=null && detail.birthday!='' }">
                      <tr>
                        <td class="dataList_Text">出生日期：</td>
                        <td><c:out value="${detail.birthday }"/></td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.constellationLabel!=null && detail.constellationLabel!='' }">
                      <tr>
                        <td class="dataList_Text">星座：</td>
                        <td>${detail.constellationLabel }</td>
                      </tr>
                      </c:if>
                      <%-- 
                      <tr>
                        <td class="dataList_Text">家乡：</td>
                        <td>${detail.birthProvice }${detail.birthCity }${detail.birthDistrict }${detail.birthAddress }</td>
                      </tr>
                      <c:if test="${detail.city!=null && detail.city!=''}">
                      <tr>
                        <td class="dataList_Text">现在城市：</td>
                        <td id="nowCity">${detail.city }</td>
                      </tr>
                      </c:if>
                      --%>
                      <c:if test="${detail.bloodLabel!=null && detail.bloodLabel!=''}">
                      <tr>
                        <td class="dataList_Text">血型：</td>
                        <td id="nowCity">${detail.bloodLabel }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.profileLabel!=null && detail.profileLabel!=''}">
                      <tr>
                        <td class="dataList_Text">体型：</td>
                        <td>${detail.profileLabel }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.email!=null && detail.email!=''}">
                      <tr>
                        <td class="dataList_Text">邮箱：</td>
                        <td>${detail.email }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.zipcode!=null && detail.zipcode!=''}">
                      <tr>
                        <td class="dataList_Text">邮编：</td>
                        <td>${detail.zipcode }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.phone!=null && detail.phone!=''}">
                      <tr>
                        <td class="dataList_Text">电话：</td>
                        <td>${detail.phone }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.mobilephone!=null && detail.mobilephone!=''}">
                      <tr>
                        <td class="dataList_Text">手机：</td>
                        <td>${detail.mobilephone }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.qq!=null && detail.qq!=''}">
                      <tr>
                        <td class="dataList_Text">qq：</td>
                        <td>${detail.qq }</td>
                      </tr>
                      </c:if>
                      <c:if test="${detail.msn!=null && detail.msn!=''}">
                      <tr>
                        <td class="dataList_Text">MSN：</td>
                        <td>${detail.msn }</td>
                      </tr>
                      </c:if>
                      <c:if test="${fn:length(detail.learningList)>0 }">
                      <tr>
                        <td><h3>学习经历</h3></td>
                        <td></td>
                      </tr>
                      </c:if>
                      <c:forEach items="${detail.learningList }" var="learning">
                      <tr>
                        <td class="dataList_Text">学校类型：</td>
                        <td>${learning.schoolTypeLabel }</td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">学校名称：</td>
                        <td>${learning.school }</td>
                      </tr>
                      <c:if test="${learning.schoolTypeLabel == '大学' }">
                      <tr>
                        <td class="dataList_Text">院系：</td>
                        <td>${learning.college }</td>
                      </tr>
                      </c:if>
                      <tr>
                        <td class="dataList_Text">班级：</td>
                        <td>${learning.className }</td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">入学年份：</td>
                        <td>${learning.entryDate }</td>
                      </tr>
                      </c:forEach>
                      <c:if test="${fn:length(detail.workList)>0 }">
                      <tr>
                        <td><h3>工作经历</h3></td>
                        <td></td>
                      </tr>
                      </c:if>
                      <c:forEach items="${detail.workList }" var="work">
                      <tr>
                        <td class="dataList_Text">工作单位：</td>
                        <td>${work.unit }</td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">所在部门：</td>
                        <td>${work.department }</td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">入职时间：</td>
                        <td>${work.entryYear }-${work.entryMonth }</td>
                      </tr>
                      <tr>
                        <td class="dataList_Text">离职时间：</td>
                        <td>${work.departureYear }-${work.departureMonth }</td>
                      </tr>
                      </c:forEach>
                      <c:if test="${fn:length(detail.personalityList)>0 }">
                      <tr>
                        <td><h3>个性化资料</h3></td>
                        <td></td>
                      </tr>
                      </c:if>
                      <c:forEach items="${detail.personalityList }" var="personality">
                      <tr>
                        <td class="dataList_Text">${personality.name }：</td>
                        <td>${personality.value }</td>
                      </tr>
                      </c:forEach>
                      <c:if test="${fn:length(detail.contactList)>0 }">
                      <tr>
                        <td><h3>联系方式</h3></td>
                        <td></td>
                      </tr>
                      </c:if>
                      <c:forEach items="${detail.contactList }" var="contact">
                      <tr>
                        <td class="dataList_Text">${contact.name }：</td>
                        <td>${contact.value }</td>
                      </tr>
                      </c:forEach>
                      <tr>
                      	<td></td>
                      	<td></td>
                      </tr>
                    </table>
                </div>
   	 		 </div>
  </div>
  </div>
 